package com.zlll.winner.business.service.media;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zlll.winner.business.model.media.MediaHost;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zlll.winner.business.model.sysUser.SysUser;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author qsx
 * @since 2019-10-11
 */
public interface IMediaHostService extends IService<MediaHost> {

    IPage<Map<String, Object>> fetchHostListPage(JSONObject params);

    boolean saveHost(MediaHost mediaHost, SysUser user);

    void editHost(MediaHost mediaHost, SysUser user);

    int deleteHostById(Long id, String name);

    List<MediaHost> getMediaHostByMenuId(Long menuId);

}
